Cloud gaming system and method of initiating a gaming session

ABSTRACT

A gaming cloud gaming system and a method of initiating a gaming session. One embodiment of the gaming cloud gaming system includes a computing system having: (1) an entry point operable to receive a game session request and generate instructions for establishing a connection between a client and a game server, and (2) a dynamically configurable reverse proxy operable to proxy for the game server and configured to employ the instructions to create a route to a randomly selected port on the game server through which the connection is makeable.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a divisional of U.S. patent application Ser. No. 14/163,178, entitled “CLOUD GAMING SYSTEM AND METHOD OF INITIATING A GAMING SESSION”, filed on Jan. 24, 2014. The above-listed application is commonly assigned with the present application is incorporated herein by reference as if reproduced herein in its entirety.

TECHNICAL FIELD

This application is directed, in general, to gaming cloud gaming systems and, more specifically, to use of reverse proxies in gaming cloud gaming.

BACKGROUND

The primary purpose of a proxy service is to act on behalf of another system, generally either one or more clients, or one or more servers. A forward proxy provides proxy services to one or more clients. When a client desires access to the Internet, it submits a request through the forward proxy, which can allow or deny the request. When allowing the request, the forward proxy passes the request along to a server over the Internet. When the server responds to the request, it responds to the forward proxy, which recognizes the response as directed to the requesting client. The forward proxy is a single point of access and control, which makes it well-suited to enforce security policies on the clients behind the forward proxy.

Similarly, a reverse proxy provides proxy services to one or more servers. When a client desires access to a server, the request is submitted to the reverse proxy, which accepts requests on behalf of the servers behind it. The reverse proxy then passes the request to the appropriate server and ultimately responds to the client as if the response is from the server itself. The reverse proxy hides the identity of the servers behind it, making it also well suited to provide security.

A proxy service is generally a process executing on a computing system that sits on the network over which it proxies. A computing system hosting the proxy process is sometimes referred to as a proxy device. For reverse proxies, the proxy service can execute on one of the server computing systems for which it serves as proxy, in addition to whatever processes the server ordinarily runs.

SUMMARY

One aspect provides a computing system. In one embodiment, the system includes: (1) an entry point operable to receive a game session request and generate instructions for establishing a connection between a client and a game server, and (2) a dynamically configurable reverse proxy operable to proxy for the game server and configured to employ the instructions to create a route to a randomly selected port on the game server through which the connection is makeable (i.e. able to be made).

Another aspect provides a method of initiating a gaming session. In one embodiment, the method includes: (1) receiving a gaming session request originating at a client and assigning a dynamically configurable reverse proxy having an Internet protocol (IP) address, (2) selecting a game server and at least one port thereon for the gaming session, and (3) transmitting the at least one port and the IP address toward the client.

Yet another aspect provides a gaming cloud gaming system. In one embodiment, the system includes: (1) a plurality of game servers configured to host gaming sessions for a plurality of clients, wherein the gaming sessions respectively employ at least one network connection with a game server of the plurality, (2) a plurality of reverse proxy nodes dynamically configurable to proxy for the plurality of game servers and having respective IP addresses, and (3) a provision manager operable to: (3a) receive a request for a gaming session from a client of the plurality, (3b) assign a reverse proxy node of the plurality to the gaming session and cause the reverse proxy node to randomly select respective ports for the at least one network connection, and (3c) communicate the respective IP address of the reverse proxy node and the respective ports to the client and the respective ports to the game server.

BRIEF DESCRIPTION OF THE DRAWINGS

Reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:

FIG. 1 is a block diagram of one embodiment of a gaming cloud gaming system;

FIG. 2 is a block diagram of another embodiment of a gaming cloud gaming system; and

FIG. 3 is a flow diagram of one embodiment of a method of initiating a gaming session.

DETAILED DESCRIPTION

Cloud gaming is a service wherein a client initiates a gaming session with a game server and a connection is negotiated between the client and the game server. The game server executes the appropriate game application and renders the graphics. Rendered graphics are streamed to the client in real-time over the connection, and user inputs are streamed from the client to the game server in real-time.

A gaming cloud gaming service provider typically employs many servers capable of providing gaming cloud gaming streams to many clients. Each server typically requires a unique public Internet protocol (IP) address, which introduces significant cost and security implications. Each server is essentially the same and can host any gaming cloud gaming session that any other can host. The gaming cloud gaming system typically exposes a single end-point with statically configured routes to a server. The statically configured routes employ the same port values among each of the servers. As gaming session requests are received from clients, the end-point directs the requests to the appropriate port for that particular service and to a server with available bandwidth.

It is realized herein that gaming cloud gaming systems can use dynamically configured reverse proxies to create and break routes dynamically as demand for gaming sessions and connections fluctuates. A gaming session request arrives at a provision manager, which then instructs a reverse proxy to set up connections to a game server. The provision manager is the entry point that is always available to clients through the Internet. The provision manager monitors the capacity of the gaming cloud gaming system and, as realized herein, can bring reverse proxy nodes online and offline to meet demand. An instructed reverse proxy node then randomly assigns as many ports as are necessary for the gaming session. (“Random” is defined broadly to include true random, pseudorandom and quasirandom.)

Dynamic port allocations allow various games having different demands to be efficiently allocated to game servers of varying capability. “Dynamic” refers to configuring processes on-demand for a particular gaming session between a particular client and a particular server. When the gaming session ends, the processes drop the configuration, thereby closing any associated connections. The processes then either terminate or are reconfigured for another gaming session. The dynamically configurable proxies effectively form a software defined network (SDN) such that, under zero load, no game servers are reachable through the reverse proxy. Conversely, static routes can introduce latency issues because of the varying performance of the game servers running various game applications. Static routes require large numbers of open ports on the game servers to support the variety of bandwidth demands. Each of the game servers uses the same port values for certain games, certain processes, or certain connections. It is realized herein that static routes result in unbalanced loads on the game servers. By dynamically adding and removing routes, the load on the game servers can be more intelligently distributed among the game servers.

It is further realized herein that the ports should only remain open for the duration of the gaming session. Once the gaming session ends, the used ports are closed through the reverse proxy. Each new session gets one or more randomly selected ports and potentially a different server. This makes it difficult to attack the game servers, because no connection is persistent. Additionally, it is realized herein that, the reverse proxy should examine packets and only pass those that originate from the appropriate source IP address, which would be the IP address for the game server or the client.

Once the provision manager assigns the gaming session to a particular reverse proxy node and a game server, and the routes are established, the provision manager then responds to the initial gaming session request from the client, instructing it to use the connections, which are identified by an IP address for the reverse proxy and port numbers. To establish a connection, the reverse proxy evaluates rules to route the initial packets. The rules are essentially a configuration of a network address translation (NAT) process, such as IPTables. A (NAT) process routes packets. The reverse proxy uses the rules dynamically to instruct the NAT process how to route packets based on its instructions from the provision manager.

It is realized herein that the NAT process can be configured such that packet processing can be completed in logarithmic time. Initial packets that create new connections to game servers through the reverse proxy are routed by the NAT process. Certain NAT processes utilize a binary tree, or “B-Tree,” rule structure wherein the leaf nodes contain the actual NAT rules that determine the NAT fate of a packet. It is realized herein that branches can be made based on whether a packet's associated destination port lies within a configurable defined range. Once packets have been initially routed, the NAT process tracks the connection internally and routes subsequent packets over that connection automatically in constant time.

It is realized herein that the time needed to route a packet tends to be constant among all sessions, all servers, and all ports. The constant allows a non-degraded real-time gaming cloud gaming service.

It is also realized herein that such a gaming cloud gaming system can gain fault tolerance by having multiple dynamically configurable reverse proxy processes. If a connection is disrupted or a reverse proxy process faults, the provision manager can bring another reverse proxy process online, new ports are assigned, and the connection between the game server and the client is reestablished through the new reverse proxy.

FIG. 1 is a block diagram of one embodiment of a gaming cloud gaming system, system 100. System 100 includes clients 110, reverse proxy nodes 120, game servers 130, a provision manager 150. Provision manager 150, reverse proxy nodes 120, and game servers 130 constitute “the gaming cloud” as far as clients 110 are concerned. Clients 110 gain access to the gaming cloud through the Internet 140. Clients 110 can include a variety of computing devices, including: desktop personal computers (PCs), laptop PCs, handheld game devices, mobile phones, Smartphones, tablet computers, and others. Clients 110 generally need the capability to transmit and receive game data from the gaming cloud through the Internet 140. Clients 110 are also capable of displaying graphics rendered on the gaming cloud and streamed to them.

Game servers 130 are responsible for executing game applications and rendering game graphics. Game servers 130 typically include many server computers to provide the game streams to connecting clients. Reverse proxy nodes 120 proxy for game servers 130. Reverse proxy nodes 120 also allow the distribution of gaming sessions among game servers 130 according to available processing bandwidth. Reverse proxy nodes 120 are typically individual proxy processes executing on one or more computers on the gaming cloud network. Reverse proxy nodes 120 are brought online and offline according to demand from clients 110. Reverse proxy nodes 120 have their own IP addresses and prevent direct access to game servers 130 from the Internet 140. Packetized game data originating at clients 110 are received by reverse proxy nodes 120 over the Internet 140. The packets use the IP addresses of reverse proxy nodes 120 as the destination address. Reverse proxy nodes 120 then route the game data to the appropriate server for each gaming session of clients 110. Similarly, game data originating at game servers 130 are transmitted to reverse proxy nodes 120, where the packets are then routed toward the appropriate clients.

Provision manager 150 is a persistent process executing on a computer on the gaming cloud network. Clients 110 generate gaming session requests to initiate gaming sessions. Provision manager 150 is configured to receive the gaming session requests via reverse proxy nodes 120 and coordinate the various elements of the gaming cloud to establish the necessary connections for each gaming session. Provision manager 150 determines which of game servers 130 should host a given gaming session and assigns a node of reverse proxy nodes 120. The hosting game server determines what connections are needed for the gaming session. For example, one game session may require three user datagram protocol (UDP) connections and four transmission control protocol (TCP) connections. Each different game application may use different combinations of connections. Game servers 130 pass the connection needs back to provision manager 150. Provision manager 150 instructs the assigned reverse proxy node to add the necessary routes for those connections. Reverse proxy nodes 120 are configured to randomly select port values to use for their respective gaming sessions. Those ports are then opened on the assigned reverse proxy node. The selected ports are then communicated back to provision manager 150 and to game servers 130. Provision manager 150 then communicates the connection instructions through reverse proxy nodes 120 to clients 110. The connection instructions for a given client include the IP address for the assigned reverse proxy node and the randomly selected port values. Additionally, connection instructions can also include the quantity and type of connections for a given gaming session. Clients 110 then use the connection information to establish connections to game servers 130 through the Internet 140 and reverse proxy nodes 120.

FIG. 2 is a block diagram of another embodiment of a gaming cloud gaming system, system 200. System 200 includes an entry point 220, a client 240, a reverse proxy 250, and a game server 260. Client 240 initiates a game session by submitting a gaming session request 210 to entry point 220. Gaming session request 210 includes connection details for client 240 and identifies the particular game for which the session is request.

Entry point 220 receives gaming session request 210 and generates connection instructions 230. Entry point 220 is a persistent process that manages the allocation of gaming cloud resources, particularly the number of reverse proxy nodes and the distribution of gaming sessions among all game servers.

Game server 260 is one server, typically of many, responsible for executing game applications and rendering graphics to be streamed to one or more clients for their respective gaming sessions. Game server 260 uses connection instructions 230 to determine what connections are necessary for the requested gaming session. The quantity and types of connections are added to connection instructions 230.

Reverse proxy 250 is a dynamically configurable proxy for game server 260. Reverse proxy 250 uses connection instructions 230 randomly to select ports for the necessary connections to game server 260. The randomly selected ports are also added to connection instructions 230.

Client 240 is a computing device capable of at least displaying remotely rendered graphics and transmitting and receiving game data to and from game server 260. Client 240 uses connection instructions 230, including the IP address of reverse proxy 250, the randomly selected ports, and the quantity and types of connections, to establish the necessary connections to game server 260 through reverse proxy 250. Client 240 transmits initial packets for the necessary connections to reverse proxy 250 over proxy connections 270. Proxy connections 270 include the quantity and types of connections deemed necessary by game server 260 in response to connection instructions and gaming session request 210. The initial packets from client 240 are processed by reverse proxy 250 to establish routes 280 to game server 260. Routes 280 include a route for each connection to its designated port on game server 260. The initial packets for each connection are identifiable by their originating IP address, which is that of client 240, the IP address of reverse proxy 250, and the destination port on game server 260.

Reverse proxy 250 employs a binary-tree rule structure to carry out NAT. NAT is generally an independent process configured by reverse proxy 250. In certain embodiments, reverse proxy 250 employs a separate binary tree for TCP and UDP connections. A packet begins processing at the root of the binary tree and moves down the branches toward leaf nodes. In the binary tree, the leaf nodes contain NAT rules for determining the NAT fate of a packet. The branches are made based on whether the destination port of a packet falls within a configurable range for the branch, eventually arriving at a leaf node for a particular port on game server 260. Once the route is established by processing the initial packets through the binary tree, the route is tracked internal to the NAT process and subsequent packets associated with the connection are routed automatically. This proxy routing provides for a determinable worst-case routing time, which can then be used to determine whether additional reverse proxy nodes should be brought online or if existing reverse proxy nodes can be taken offline. Additionally, the routing time is held constant among all clients, servers, and reverse proxy nodes.

When the gaming session terminates, whether voluntarily by client 240 or by broken connections in proxy connection 270 or routes 280, the ports randomly selected by reverse proxy 250 are closed and the routes removed between reverse proxy 250 and game server 260. If client 240 were to initiate a new gaming session or if entry point 220 were to initiate a recovery of an involuntary termination of proxy connections 270 or routes 280, entry point 220 would generate new connection instructions to a different reverse proxy node and possibly a different game server. The new reverse proxy node would randomly select new ports to be used for the gaming session. Client 240 would then use the new connection instructions to reestablish its connections to the game server.

FIG. 3 is a flow diagram of a method for initiating a gaming session. The method begins in a start step 310. A gaming session is initiated by a client request. In a receiving step 320, the gaming session request is received and a dynamically configurable reverse proxy is assigned to the gaming session. The reverse proxy has an IP address and proxies for at least one game server. A particular game server and at least one port on that game server are selected in a selection step 330. The assigned reverse proxy forms a route from the reverse proxy node to the selected port on the game server. Additionally, given the selected port value, NAT rules can be formed for routing the initial packets of a particular connection.

Continuing the embodiment of FIG. 3, in a communication step 340, the at least one port value selected in selection step 330 and the IP address of the dynamically configurable reverse proxy are transmitted back to the originating client. The client uses this information to establish at least one connection with the game server through the dynamically configurable reverse proxy. The client transmits the initial packets for the connections to the reverse proxy, which uses a NAT process to carry out the initial routing. There are a variety of NAT schemes available, e.g., IPTables, for routing the initial packets. In certain embodiments the NAT process employs a binary-tree rule structure based on the destination port for each of the initial packets. A binary-tree structure based on the port value allows for packet routing in logarithmic time.

Ultimately, the gaming session will terminate. A gaming session can end in a variety of ways, the most basic of which is the client simply voluntarily ending the session. Alternatively, a gaming session may be involuntarily ended in the event of a connection interruption or a process fault or failure in the game server or one of its proxies. Upon termination of the gaming session, any routes added for that gaming session are removed and the associated ports closed on the reverse proxy node. The method then ends in an end step 350.

Those skilled in the art to which this application relates will appreciate that other and further additions, deletions, substitutions and modifications may be made to the described embodiments. 

What is claimed is:
 1. A computing system, comprising: an entry point operable to receive a game session request and generate instructions for establishing a connection between a client and a game server, wherein the game server executes an appropriate game application and renders graphical output, said graphical output streamed to said client over said connection; and a dynamically configurable reverse proxy having an Internet protocol (IP) address operable to proxy for said game server and configured to employ said instructions to create a route to a randomly selected port on said game server through which said connection is established, wherein: said dynamically configurable reverse proxy is configured to select said randomly selected port and communicate said randomly selected port to said entry point; and said instructions are sent by said entry point to said client and include said IP address and said selected port.
 2. The computing system as recited in claim 1 wherein said route is closed upon termination of said game session.
 3. The computing system as recited in claim 1 wherein said entry point is operable to initiate said dynamically configurable reverse proxy based on gaming session demand.
 4. The computing system as recited in claim 1 wherein said instructions include an Internet protocol (IP) address for said client and a quantity and respective types of connections to be made between said client and said game server.
 5. A method of initiating a gaming session, comprising: receiving a gaming session request originating at a client and assigning a dynamically configurable reverse proxy having an Internet protocol (IP) address; selecting a game server and at least one port thereon for said gaming session, wherein the game server executes an appropriate game application and renders graphical output, said graphical output streamed to said client, wherein said dynamically configurable reverse proxy is configured to select said at least one port and communicate said at least one port to an entry point; and transmitting said at least one port and said IP address toward said client by said entry point.
 6. The method as recited in claim 5 further comprising forming a route from said dynamically configurable reverse proxy to said at least one port on said game server.
 7. The method as recited in claim 6 wherein said forming includes opening said at least one port on said dynamically configurable reverse proxy.
 8. The method as recited in claim 7 further comprising terminating said gaming session and closing said route.
 9. The method as recited in claim 6 wherein said forming includes generating network address translation (NAT) rules for routing initial packets for said gaming session.
 10. The method as recited in claim 9 further comprising employing a binary-tree NAT scheme in routing said initial packets based on said at least one port.
 11. The method as recited in claim 6 wherein said at least one port is randomly chosen upon initiation of said gaming session. 